package com.wing.order.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 签收单扫描的包装条码
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ord_order_delivery_label")
public class OrderDeliveryLabel extends BaseEntity<OrderDeliveryLabel> implements Serializable {


    private static final long serialVersionUID = 1L;

    public enum Status implements IEnum<Integer> {

        /**
         * 入库
         */
        signed(1,"已签收"),
        /**
         * 出库
         */
        inventoryIn(2,"已入库");

        private int code;
        private String desc;

        Status(int code,String desc){
            this.code=code;
            this.desc=desc;
        }

        @Override
        public Integer getValue(){
            return this.code;
        }

        public String getDesc(){
            return this.desc;
        }
    }

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 平台sku id
     */
    private Long skuId;

    /**
     * 领取数量
     */
    private Long quantity;

    /**
     * 包装编码id
     */
    private Long packLabelId;

    /**
     * 包装编码
     */
    private String packLabelCode;

    /**
     * 包装规格描述id
     */
    private Long packId;

    /**
     * 包装规格名称
     */
    private String packName;

    /**
     * 单位包装数
     */
    private Long packLabelQuantity;

    /**
     * 领取单id
     */
    private Long deliveryId;

    /**
     * 领取单明细id
     */
    private Long deliveryDetailId;

    /**
     * sku code
     */
    private String skuCode;

    /**
     * 单位
     */
    private String unitName;

    private Status status;


    private Long warehouseId;

    private Long areaId;

    private Long shelfId;

    private Long spaceId;

    private Long boxId;

    /**
     *签收记录id
     */
    private Long signId;

    /**
     * 签收明细id
     */
    private Long signDetailId;


    private Integer abnormalNum;
    /**
     * 入库数
     */
    private Long storageQuantity;


}
